from django.shortcuts import render
from rest_framework.generics import ListAPIView
from activity.serializers import ActivityListSerializer
from .models import Activity
# Create your views here.


class ActivityListView(ListAPIView):
    """活动列表页"""
    serializer_class = ActivityListSerializer
    queryset = Activity.objects.all()